package com.yh.homestay.common;

import com.yh.homestay.pojo.CapitalGoods;

public class CapitalGoodsResult {
    private Integer code;
    private String message;
    private CapitalGoods capitalgood;

    public Integer getCode() {
        return code;
    }

    public CapitalGoodsResult(Integer code) {
        this.code = code;
    }

    public CapitalGoodsResult(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public static CapitalGoodsResult ok(){
        return new CapitalGoodsResult(200);
    }
    public static CapitalGoodsResult build(Integer code, String msg){
        return new CapitalGoodsResult(200,msg);
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public CapitalGoods getCapitalgood() {
        return capitalgood;
    }

    public void setCapitalgood(CapitalGoods capitalgood) {
        this.capitalgood = capitalgood;
    }

    public CapitalGoodsResult() {
    }

    public CapitalGoodsResult(Integer code, String message, CapitalGoods capitalgood) {
        this.code = code;
        this.message = message;
        this.capitalgood = capitalgood;
    }

    @Override
    public String toString() {
        return "CapitalGoodsRustlt{" +
                "code=" + code +
                ", message='" + message + '\'' +
                ", capitalgood=" + capitalgood +
                '}';
    }
}
